home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / music / ctv_mod.zip / LARGE.C < prev    next >
C/C++ Source or Header  |  1990-10-01  |  2KB  |  59 lines

  1. #include      <dos.h>
  2.  
  3. typedef unchar unsigned char ;
  4. typedef unint  unsigned int ;
  5.  
  6.        unchar      far *buffer ;
  7.        char        c;
  8.  
  9. extern unchar    intr_num ;
  10. extern unint     voice_status ;
  11. extern unint     io_addx ;
  12.  
  13. main(unint  argc,unchar *argv[])
  14. {
  15.        unint loop = TRUE ;
  16.        printf("Card found: %d\n",ctv_card_here());
  17.  
  18.     if (buffer = (unchar far*)0x6000f000L)
  19.     {
  20.          printf("Driver init: %d\n",ctv_detect()) ;
  21.          printf("Interrupt at: %d\n",intr_num) ;
  22.  
  23.               while (loop)
  24.               {
  25.                    while(kbhit())
  26.                    {
  27.                       c = getch();
  28.  
  29.                       switch(c)
  30.                       {
  31.                        case ' ':
  32.                             printf("Halt and exit : %d\n",ctv_halt());
  33.                             loop = FALSE ;
  34.                             break;
  35.                        case 's':
  36.                        case 'S':
  37.                             printf("Start : %d\n",ctv_output(buffer,0xffff,8000));
  38.                             break;
  39.                        case 'p':
  40.                        case 'P':
  41.                             printf("Pause : %d\n",ctv_pause());
  42.                             break;
  43.                        case 'c':
  44.                        case 'C':
  45.                             printf("Resume: %d\n",ctv_continue());
  46.                             break;
  47.                        case 'h':
  48.                        case 'H':
  49.                             printf("Halt  : %d\n",ctv_halt());
  50.                             break;
  51.                        default:
  52.                             break;
  53.                       }
  54.                    }
  55.               }
  56.  
  57.     }
  58.  
  59. }